<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="tree" th:fragment="left">
    <ul style="padding-left:0px;" class="list-group">
        <li class="list-group-item tree-closed">
            <a th:href="@{/main}"><i class="glyphicon glyphicon-dashboard"></i> 控制面板</a>
        </li>
        <li class="list-group-item" th:style="${#sets.contains(session.permissions, 'permission')} ? '' : 'display:none'">
            <span><i class="glyphicon glyphicon glyphicon-tasks"></i> 权限管理 <span class="badge" style="float:right">3</span></span>
            <ul style="margin-top:10px;">
                <li style="height:30px;" th:style="${#sets.contains(session.permissions, 'permission')} ? 'height:30px;' : 'display:none'">
                    <a th:href="@{/user/list}"><i class="glyphicon glyphicon-user"></i> 用户维护</a>
                </li>
                <li style="height:30px;" th:style="${#sets.contains(session.permissions, 'permission')} ? 'height:30px;' : 'display:none'">
                    <a th:href="@{/role/list}"><i class="glyphicon glyphicon-king"></i> 角色维护</a>
                </li>
                <li style="height:30px;" th:style="${#sets.contains(session.permissions, 'permission')} ? 'height:30px;' : 'display:none'">
                    <a th:href="@{/permission/list}"><i class="glyphicon glyphicon-lock"></i> 许可维护</a>
                </li>
            </ul>
        </li>
    </ul>
</div>
</body>
</html>